package per.sunmes.lesrb.data;

import per.sunmes.lesrb.util.RandomUtil;

public class RandValue {

	public float min;
	public float max;

	public RandValue(float min, float max) {
		if (min > max) {
			this.min = max;
			this.max = min;
		} else {
			this.min = min;
			this.max = max;
		}
	};

	public int getIntValue() {
		return Math.round(RandomUtil.rand(min, max));
	}

	public float getValue() {
		return RandomUtil.rand(min, max);
	}

}
